/**
 * 
 */
package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.AuScontent;
import com.py.framework.core.common.Page;

/**
 * @author dd
 *
 */
public interface AuScontentDao {

	/**
	 * @param sa
	 */
	void add(AuScontent auScontent);

	/**
	 * @param idArray
	 */
	void del(@Param(value = "list") String[] idArray);

	/**
	 * @param showColumns
	 * @param additionalColumns
	 * @param conditions
	 * @param page
	 * @return
	 */

	List<Map<String, Object>> selectByConditionForPage(@Param(value = "status") String status,
			@Param(value = "columns") List<String> showColumns,
			@Param(value = "additionalColumns") String[] additionalColumns,
			@Param(value = "conditions") List<String> conditions, @Param(value = "page") Page page);

	/**
	 * @param sa
	 */
	void update(AuScontent sa);

	AuScontent select(@Param(value = "id") String id);

	/**
	 * @param sContentType
	 * @return
	 */
	Integer selectAuScontentByToken(@Param(value = "token") String token);

	/**
	 * @param token
	 * @return
	 */
	AuScontent selectByToken(@Param(value = "token") String token);

	int selectAuScontentDeptNum();

}
